package com.xvyy.tingshu.constant;

/**
 * ClassName: CacheAbleConstant
 * Package: com.xvyy.tingshu.constant
 *
 * @Description:
 * @Author: xvyy
 * @Create: 2025/2/9 - 19:30
 * @Version: v1.0
 */
public class CacheAbleConstant {
    // 数据同步时间
    public static Long SYNC_DATA_TIME = 200L;
    // 定义redis缓存的协议
    public static String REDIS_CACHE_PROTOCOL = "redis://";
    public static String REDIS_CACHE_PROTOCOL_SPLIT = ":";
    // 定义分布式布隆的锁key
    public static String DISTRO_BLOOM_LOCK_KEY = "albumIdBloomFilter:lock";
    // 定义分布式布隆的锁key的站位符
    public static String DISTRO_BLOOM_LOCK_FLAG = "1";
    // 定义分布式布隆的名字
    public static String DISTRO_BLOOM_NAME = "albumIdBloomFilter";
    // 定义分布式布隆的名字
    public static long DISTRO_BLOOM_SIZE = 1000000L;
    public static double DISTRO_BLOOM_FPP = 0.03;
    public static long SYNC_HAS_NO_DATA_TTL = 30L;
    public static long SYNC_HAS_DATA_TTL = 60 * 24 * 7L;
    // 定义正则规则
    public static String REGEX_RULE_FIRST = "^\\{\\}$";
    public static String REGEX_RULE_SECOND = "^null$";
    public static String REGEX_RULE_THIRD = "^\\[\\]$";
    // 类型转换异常code
    public static Integer TYPE_CAST_CODE = 400;


}
